package com.letoken.platform.repo.admin.manager;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.letoken.platform.repo.admin.dao.AdminWithdrawConfigMapper;
import com.letoken.platform.repo.admin.po.AdminWithdrawConfig;
import com.letoken.platform.repo.app.res.config.QuerySwapConfigRes;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author letokenlabs
 * @date 2022/11/24$
 */
@Log4j2
@Repository
public class AdminWithdrawConfigManager {

    @Autowired
    private AdminWithdrawConfigMapper adminWithdrawConfigMapper;


    /**
     * 查询提现配置
     *
     * @return
     */
    public AdminWithdrawConfig queryByToken(Integer tokenId) {
        QueryWrapper<AdminWithdrawConfig> query = new QueryWrapper<>();
        query.eq("token_id", tokenId);
        return adminWithdrawConfigMapper.selectOne(query);
    }

}
